Parser.parse

Use the parser to parse some source code stored in one contiguous buffer. The first two parameters are the same as in the ts_parser_parse function above. The second two parameters indicate the location of the buffer and its length in bytes.

  1. auto parse(TSInput input, TSTree* old_tree)
  2. auto parse(string source_code, TSTree* old_tree)
    struct Parser
    nothrow
    parse
    (
    const string source_code
    ,
    const TSTree* old_tree = Tree.create_empty()
    )
  3. auto parse(string source_code, TSInputEncoding encoding, TSTree* old_tree)

Meta